Module 2: Access Management
Cloud Operations on AWS
| Credential Type | Usage |
|---|---|
| Root (account owner) | Account creation, termination, other tasks |
| IAM username/password | Access to the AWS Management Console |
| Access / secret keys | AWS CLI and programmatic API/SDK requests |
| MFA | Extra layer of security for root and IAM users |
Best practice: never use the root user for day-to-day tasks.
| Element | Description | Required |
|---|---|---|
| Effect | Allow or Deny | ✓ |
| Principal | Account/user/role (resource-based policies only) | – |
| Action | List of allowed/denied actions | ✓ |
| Resource | Resources the actions apply to | ✓ |
| Condition | Circumstances under which the policy applies | – |
Issue: A user does not have permission to assign a new SSMManagedInstanceRole to an EC2 instance.
Cause: The iam:PassRole permission only grants passing roles matching arn:aws:iam:::role/EC2*
Solution: Update the Resource in the PassRole statement to match the specific role name pattern being assigned.
Next: Module 3 — System Discovery
Click branch to expand